package com.fss.order.mapper;


import com.fss.order.domain.Order;
import com.fss.order.domain.OrderSku;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderMapper {
    int insertOrder(Order order); // 插入订单
    List<Order> getOrderByUserId(Long userId); // 根据ID获取订单
    int insertOrderSku(@Param("orderId") Long orderId, @Param("orderSkus") List<OrderSku> orderSkus);
    int deleteOrderById(Long orderId);//删除订单
    int deleteOrderSkuByOrderId(Long orderId);
}
